/* 动画关键帧 */
@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1) rotate(0deg); 
    opacity: 0.3; 
  }
  50% { 
    transform: translateY(-20px) scale(1.2) rotate(180deg); 
    opacity: 0.8; 
  }
}

@keyframes mouseGlowPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6; 
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideInUp {
  0% { 
    transform: translateY(60px); 
    opacity: 0; 
  }
  100% { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes slideInLeft {
  0% { 
    transform: translateX(-60px); 
    opacity: 0; 
  }
  100% { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes slideInRight {
  0% { 
    transform: translateX(60px); 
    opacity: 0; 
  }
  100% { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes cardGlow {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.2);
  }
  50% { 
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.4);
  }
}



@keyframes flowLine {
  0% { 
    transform: translateX(-100%) scaleY(0);
    opacity: 0;
  }
  20% {
    transform: translateX(-100%) scaleY(1);
    opacity: 1;
  }
  80% {
    transform: translateX(100vw) scaleY(1);
    opacity: 1;
  }
  100% { 
    transform: translateX(100vw) scaleY(0);
    opacity: 0;
  }
}

@keyframes navDotPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
  }
  50% { 
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  }
}

@keyframes progressGlow {
  0%, 100% { 
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
  }
  50% { 
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
  }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* 主容器 - 深色科技感设计 */
.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 35, 0.95);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden; /* 隐藏溢出，让transform效果可见 */
  z-index: 999;
  max-width: 100vw;
}

.container.loaded {
  opacity: 1;
}

/* 深色科技网格背景 */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridMove 30s linear infinite;
  z-index: 1;
}

/* 渐变光晕背景 */
.container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(76, 29, 149, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* 动态粒子场 */
.particleField {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  animation: particleFloat infinite ease-in-out;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.particle:nth-child(2n) {
  background: rgba(118, 75, 162, 0.6);
  box-shadow: 0 0 8px rgba(118, 75, 162, 0.4);
}

.particle:nth-child(3n) {
  background: rgba(76, 29, 149, 0.6);
  box-shadow: 0 0 8px rgba(76, 29, 149, 0.4);
}

.particle:nth-child(4n) {
  background: rgba(30, 27, 75, 0.7);
  box-shadow: 0 0 10px rgba(30, 27, 75, 0.5);
}

/* 鼠标跟随光效 */
.mouseGlow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: mouseGlowPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* 主内容区域 */
.mainContent {
  position: relative;
  z-index: 3;
  width: 100vw;
  height: auto;
  max-width: 100vw;
  transform-origin: top left;
  will-change: transform;
  transform: translate3d(0, 0, 0); /* GPU加速 */
  backface-visibility: hidden; /* 优化渲染 */
}

.mainContent::-webkit-scrollbar {
  display: none;
}

/* 确保内容区域有足够的高度来滚动 */
.mainContent > section:last-child {
  margin-bottom: 0;
}

/* 区块样式 */
.section {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.section.active {
  opacity: 1;
}

.section.active .sectionContent {
  animation: slideInUp 0.8s ease-out;
}

.section.active .contentLeft {
  animation: slideInLeft 0.8s ease-out 0.1s both;
}

.section.active .contentRight {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

/* 区块内容 */
.sectionContent {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .sectionContent {
    gap: 3rem;
    max-width: 1000px;
  }
  
  .sectionTitle {
    font-size: 3.5rem;
  }
  
  .sectionSubtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* 移动端性能优化 - 简化动画和特效 */
  .backgroundGrid {
    animation: none; /* 禁用网格动画 */
  }
  
  .mouseGlow {
    display: none; /* 禁用鼠标光效 */
  }
  
  .flowLine {
    display: none; /* 禁用流线动画 */
  }
  
  .visualCard {
    animation: none; /* 禁用卡片动画 */
    transition: none; /* 移除过渡效果 */
  }
  
  .cardIcon {
    filter: none; /* 移除阴影滤镜 */
    transition: none;
  }
  
  .sectionTitle {
    animation: none !important; /* 禁用文字渐变动画 */
  }
  
  .primaryButton,
  .secondaryButton {
    transition: transform 0.2s ease; /* 简化按钮过渡 */
  }
  
  /* 简化进入动画 */
  .section.active .sectionContent,
  .section.active .contentLeft,
  .section.active .contentRight {
    animation: none;
  }

  .section {
    padding: 4rem 1rem 1rem 1rem;
    height: auto;
    min-height: 100vh;
  }
  
  .sectionContent {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .contentLeft {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sectionNumber {
    display: none;
  }
  
  .sectionTitle {
    font-size: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .titleNumber {
    font-size: 1rem;
    color: rgba(102, 126, 234, 0.8);
    font-weight: 600;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
  }
  
  .titleText {
    flex: 1;
  }
  
  .sectionSubtitle {
    font-size: 1.1rem;
  }
  
  .sectionDescription {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .visualCard {
    width: 200px;
    height: 200px;
  }
  
  .cardIcon {
    width: 60px;
    height: 60px;
  }
  
  .actionButtons {
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .primaryButton,
  .secondaryButton {
    width: 100%;
    padding: 0.875rem 1.5rem;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.9rem;
  }
  
  .primaryButton {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
  }
  
  .secondaryButton {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .sideNavigation {
    display: none;
  }
  
  .navLabel {
    display: none;
  }
  
  .flowLine {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0.5rem 0.5rem 0.5rem;
  }
  
  .sectionContent {
    gap: 1rem;
    align-items: center;
  }
  
  .contentRight {
    margin-top: 0.5rem; /* 与按钮保持适当距离 */
  }
  
  .sectionTitle {
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .titleNumber {
    font-size: 0.9rem;
  }
  
  .sectionSubtitle {
    font-size: 1rem;
  }
  
  .sectionDescription {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .visualCard {
    width: 140px;
    height: 140px;
  }
  
  .cardIcon {
    width: 35px;
    height: 35px;
  }
  
  .actionButtons {
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 1.5rem auto; /* 底部增加间距 */
  }
  
  .primaryButton,
  .secondaryButton {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    font-weight: 500;
  }
  
  .primaryButton {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
  }
  
  .primaryButton:hover {
    background: rgba(102, 126, 234, 0.35);
    border-color: rgba(102, 126, 234, 0.7);
  }
  
  .secondaryButton {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
  }
  
  .secondaryButton:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .sideNavigation {
    display: none;
  }
  
  .navDot {
    width: 12px;
    height: 12px;
  }
  
  .navDot::after {
    width: 4px;
    height: 4px;
  }
  
  .mouseGlow {
    width: 200px;
    height: 200px;
  }
}

/* 左侧内容 */
.contentLeft {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sectionNumber {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(102, 126, 234, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sectionTitle {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  background: linear-gradient(135deg, #667eea, #764ba2, #4c1d95);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}



.sectionSubtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.sectionDescription {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 600px;
}

/* 交互按钮组 */
.actionButtons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .actionButtons {
    flex-direction: column;
  }
}

.primaryButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primaryButton:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.secondaryButton {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.secondaryButton:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

/* 右侧视觉元素 */
.contentRight {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visualCard {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: cardGlow 4s ease-in-out infinite;
}

@media (max-width: 640px) {
  .visualCard {
    width: 180px;
    height: 180px;
  }
  
  .cardIcon {
    width: 50px;
    height: 50px;
  }
}

.visualCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.15), transparent);
  transition: left 0.8s ease;
}

.visualCard:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.visualCard:hover::before {
  left: 100%;
}

.cardIcon {
  width: 120px;
  height: 120px;
  color: #667eea;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
}

.cardIcon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}







.cardGlow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(45deg, #667eea, #764ba2, #4c1d95);
  z-index: -1;
  opacity: 0.3;
}

.cardGrid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 24px;
}

/* 装饰性数据流 */
.dataFlow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flowLine {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.8), transparent);
  animation: flowLine 8s linear infinite;
  box-shadow: 0 0 6px rgba(102, 126, 234, 0.6);
}

.flowLine:nth-child(1) { top: 10%; left: 10%; }
.flowLine:nth-child(2) { top: 20%; left: 30%; animation-delay: 1s; }
.flowLine:nth-child(3) { top: 30%; left: 50%; animation-delay: 2s; }
.flowLine:nth-child(4) { top: 40%; left: 70%; animation-delay: 3s; }
.flowLine:nth-child(5) { top: 50%; left: 90%; animation-delay: 4s; }

/* 侧边导航 */
.sideNavigation {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1001;
}

.navDot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navDot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.4s ease;
}

.navDot.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.8);
  transform: scale(1.2);
  animation: navDotPulse 2s ease-in-out infinite;
}

.navDot.active::after {
  background: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.navDot:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: scale(1.1);
}

.navLabel {
  position: absolute;
  right: 2rem;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.navDot:hover .navLabel {
  opacity: 1;
  transform: translateX(0);
}

/* 底部进度条 */
.progressBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease; /* 让进度条立即响应状态变化 */
  animation: progressGlow 2s ease-in-out infinite;
  position: relative;
}

.progressFill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  animation: progressGlow 1s ease-in-out infinite;
}